<?php

	// +----------------------------------------------------------------------
	// | 用户授权
	// +----------------------------------------------------------------------
	// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
	// +----------------------------------------------------------------------
	// | Author: 微尘 <yicmf@qq.com>
	// +----------------------------------------------------------------------

	namespace app\model\ucenter;

	class UserOauth extends Common
	{
		protected $type = [
			'info' => 'array',
		];

		public function user()
		{
			return $this->belongsTo(User::class);
		}

		/**
		 * 写入修改
		 * @param $data
		 */
		public static function onBeforeInsert($data)
		{
			$data['status'] = 1;
		}


	}
